<!DOCTYPE html>
<html>

<include file="Public:header" />

<body>
<!--<a type="button" value="新增渠道" class="btn btn-default" href="{:U('channel/add_',array('product'=>$product))}" >新增渠道</a>-->
    <table class="table table-bordered table-hover definewidth m10">
        <thead>
            <tr>
                <th>公司名称</th>
                <th>渠道号</th>
                <th>产品</th>
                <th>铃音id</th>
                <th>整曲id</th>
                <th>同步地址</th>
                <th>模拟同步</th>
                <th>操作{$product}</th>
            </tr>
        </thead>
        <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.name}</td>
                    <td>{$vo.id}</td>
                    <th>
                        <switch name="vo.product">
                            <case value="1">挖哇</case>
                            <case value="2">余音</case>
                            <case value="3">挖哇铃音盒</case>
                            <default />default
                        </switch>
                    </th>
                    <td>{$vo.track_id}</td>
                    <td>{$vo.content_id}</td>
                    <td>{$vo.sync_url}</td>
                    <td><a href="{:U('channel/send_',array('id'=>$vo[id],'product'=>$product))}">模拟同步</a></td>
                    <td><a href="{:U('channel/edit_',array('id'=>$vo[id],'product'=>$product))}">编辑</a></td>
                </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</body>

</html>
<script>
$(function() {

    $('#addnew').click(function() {

        window.location.href = "{:U('channel/add_')}";
    });


});

function del(id) {


    if (confirm("确定要删除吗？")) {

        var url = "index.html";

        window.location.href = url;

    }




}
</script>
